import http from './axios'

/* 关注相关 */

// 添加关注
export const Follow = userId => http('POST', `/operate/follow/${userId}`)
// 取消关注
export const UnFollow = userId => http('DELETE', `/operate/unfollow/${userId}`)

/* 点赞相关 */

// 博客点赞
export const LikeBlog = blogId => http('POST', `/operate/like/blog/${blogId}`)
// 博客取消点赞
export const UnlikeBlog = blogId => http('DELETE', `/operate/unlike/blog/${blogId}`)
// 评论点赞
export const LikeComment = commentId => http('POST', `/operate/like/comment/${commentId}`)
// 评论取消点赞
export const UnlikeComment = commentId => http('DELETE', `/operate/unlike/comment/${commentId}`)
